import React, {Component} from 'react';
import PropTypes from 'prop-types'

export default class Item extends Component {

    static propTypes = {
        comment: PropTypes.object.isRequired
    }

    render() {
        const {comment} = this.props
        return (
            <div>
                <h1>{comment.username}</h1>
                <p>{comment.content}</p>
                <p>-----------------------</p>
            </div>
        )
    }
}
